package cn.hxth.dubbo.service.mapper;

import cn.hxth.api.model.OutstockRecord;
import cn.hxth.api.query.OutstockRecordQueryObject;
import cn.hxth.api.query.QueryObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OutstockRecordMapper {


    boolean insert(OutstockRecord OutstockRecord);

    OutstockRecord selectByPrimaryKey(long ono);

    List<OutstockRecord> selectAll(OutstockRecordQueryObject outstockRecordQueryObject);

    Integer selectCount(OutstockRecordQueryObject outstockRecordQueryObject);

    List<Map<String,Object>> selectAggrInfoSplit(QueryObject queryObject);

    Integer selectAggrInfoCount();

    List<Map<String,Object>> selectAggrInfo();
    boolean insertList(List<OutstockRecord> outstockRecordList) ;


    List<Integer>selectOnoForCache(OutstockRecordQueryObject outstockRecordQueryObject);
}